<%@ page language="java" import="com.alibaba.fastjson.JSONObject" pageEncoding="UTF-8" %>
<%@ page import="weaver.conn.RecordSet" %>
<%@ page import="weaver.general.Util" %>
<%--重点工程建设督查反馈插入台账明细--%>
<%
    JSONObject jsonData = new JSONObject();
    RecordSet rs = new RecordSet();
    boolean flag = false;
    String requestid = Util.null2String(request.getParameter("requestid"));
    rs.executeQuery("select sfxtcf,dcnr,fkfqrq,xywcfkrq,sgjd,dbjhjd,xmtjqk,fkrq,bsqk from formtable_main_105 where requestid=?", requestid);
    if (rs.next()) {
        String sfxtcf = Util.null2String(rs.getString("sfxtcf"));
        if("1".equals(sfxtcf)){
        String dcnr = Util.null2String(rs.getString("dcnr"));
        String fkfqrq = Util.null2String(rs.getString("fkfqrq"));
        String xywcfkrq = Util.null2String(rs.getString("xywcfkrq"));
        String sgjd = Util.null2String(rs.getString("sgjd"));
        String dbjhjd = Util.null2String(rs.getString("dbjhjd"));
        String xmtjqk = Util.null2String(rs.getString("xmtjqk"));
        String fkrq = Util.null2String(rs.getString("fkrq"));
        String bsqk = Util.null2String(rs.getString("bsqk"));
         flag = rs.executeUpdate("insert into uf_zdgcdc_dt1 (mainid,fkfqrq,xywcfkrq,sgjd,dbjhjd,xmtjqk,fkrq,bsqk) values('"+dcnr+"','"+fkfqrq+"',\n" +
                "'"+xywcfkrq+"','"+sgjd+"','"+dbjhjd+"','"+xmtjqk+"','"+fkrq+"','"+bsqk+"')");
        }
    }

    jsonData.put("flag", flag);
    out.print(jsonData.toJSONString());
%>






